package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository // 加和不加没有影响
public interface MemberDao {

    Member findMemberByTelephone(String telephone);

    void add(Member member);

    Integer findMemberCountByRegTime(String regTime);

    int getTodayNewMember(String date);

    int getTotalMember();

    int getThisWeekAndMonthNewMember(String date);

    List<Map<String, Object>> findSexCountByOrder();

    List<Map<String, Object>> findAgeCountByOrder();

    int queryMemberByDate(Map<Object, String> map);
}
